﻿<%@ Page Language="C#"  MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Configurations.aspx.cs" Inherits="Medora.Web.Pages.Configurations" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <input type="hidden" id="pageName" value="configurations"/>
    <div class="row">
        <div class="col-md-3">
            <div class="list-group">
                <a class="list-group-item active profile" object_name="departments"><span class="badge" data-bind="text: countDepartments"></span>Departments</a>
                <a class="list-group-item profile"><span class="badge" data-bind="text: countBlocks"></span>Blocks</a>
                <a class="list-group-item profile"><span class="badge" data-bind="text: countSectors"></span>Sectors</a>
                <a class="list-group-item profile" object_name="providers"><span class="badge" data-bind="text: countProviders"></span>Personal</a>
                <a class="list-group-item profile" object_name="specialities" ><span class="badge" data-bind="text: countSpecialities"></span>Specialities</a>
                <a class="list-group-item profile" object_name="positions" ><span class="badge"data-bind="text: countPositions"></span>Positions</a>
            </div>
        </div>
        <div class="col-md-9">
            <div class="panel panel-default">
            <div class="panel-heading">
                <div >
                    <input type="button" value="New" class="btn btn-primary btnNew"/>
                    <input type="button" value="Delete" class="btn btn-danger btnDelete"/>
                </div>
            </div>
            <div class="panel-body">
                <section id="currentView" class="view">
                    <div class="searchContainer">
                        <div data-bind="template: { name: currentObj().basicObject().searchFields().templateName, data: currentObj().basicObject() }"></div>
                    </div>
                    <div data-bind="template: { name: activeList, data: currentObj().basicObject() }">
                        
                    </div>
                </section>
             </div>
            <div class="panel-footer"></div>
                
            </div>

        </div>
    </div>
    <div id="formContainer" style="display:none" data-bind="template: { name: currentObj().basicObject().selectedObj().templateName, data: currentObj().basicObject().selectedObj }"></div>
   </asp:Content>